<?php

include_once '../../Core/Conexion.php';
include_once '../../Core/ControladorSet.php';
include_once '../../Core/InterfazDatos.php';
///****
include_once '../entidades/Curso.php';
include_once '../entidades/Institucion.php';
include_once '../entidades/Periodo.php';

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of nuevoCurso
 *
 * @author cHr15t14n
 */
class nuevoCurso extends ControladorSet {

    public function buscarValores() {
        $options = "";
        $entidad = new Institucion("","","","","","","","");
        $consulta = $this->conexion->consultaTabla($entidad);
        $fila = mysql_fetch_array($consulta);
        do {
            $options = $options . "<option value='" . $fila[0] . "'>" . $fila[2] . "</option>";
        } while ($fila = mysql_fetch_array($consulta));
        $this->diccionario['nombreInstitucion'] = $options;

        
    }

    public function setDiccionario() {
        $this->diccionario = array(
            "nombreInstitucion" => "vacio",
           
        );
    }

    public function setValorSesion() {
        $this->valorSesion = array("admin", "", "");
    }

//put your code here
}

$controlador = new nuevoCurso('nuevoCursoVista.php');
$controlador->rederizarPagina();
